package com.fishery.order.handler;

import com.fishery.entity.Result;
import com.fishery.order.entity.client.MaterialInventory;
import com.fishery.order.service.client.FactoryClient;
import org.springframework.stereotype.Component;

/**
 * @author run
 * @since 2021/3/11 21:41
 */
@Component
public class FactoryClientFallback implements FactoryClient {

	@Override
	public Result setProductCount(String batchId, Double weight) {
		return Result.error("加工厂服务繁忙");
	}

	@Override
	public Result createMaterial(MaterialInventory material) {
		return Result.error("加工厂服务繁忙");
	}

	@Override
	public Result getSourceMessage(String id) {
		return Result.error("加工厂服务繁忙");
	}

	@Override
	public Result getMessageOfBatch(String batchId) {
		return Result.error("加工厂服务繁忙");
	}

}
